package com.iip.fabric.service;


import org.hyperledger.fabric.gateway.ContractException;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.cert.CertificateException;

public interface ChainService {

    byte[] query(String key) throws IOException, CertificateException, ContractException, InvalidKeyException;

    boolean create(String key, String name, String size, String uptime, String owner, String operation);

    byte[] delete(String key);

    byte[] queryfilehistory(String key);

}
